package chenbi.renthouse.mapper;

import chenbi.renthouse.controller.request.HousePageRequest;
import chenbi.renthouse.entity.House;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HouseMapper {
//    @Select("select * from house")
    List<House> list();

    List<House> listByCondition(HousePageRequest housePageRequest);

    void save(House house);
}

